<%= form_for(@user) do |f| %>
<div>
	<ul>
		<li>
			<span>用户名：</span><%= f.text_field :name%>
		</li>
		<li>
			<span>角色ID：</span><%= f.text_field :roleID%>
		</li>
		<li>
			<span>密码：</span><%= f.password_field :pwd%>
		</li>
		<li>
			<span>是否可用：</span><%= f.check_box :enable%>
		</li>
	</ul>
</div>
<% if @user.errors.any? %>
<div id="error_explanation">
	<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

	<ul>
		<% @user.errors.full_messages.each do |msg| %>
		<li>
			<%= msg %>
		</li>
		<% end %>
	</ul>
</div>
<% end %>

<div class="actions">
	<%= f.submit %>
</div>
<% end %>
